using System;
namespace PersonalAccoutingProgram.Data
{
    partial class IncomeDataClassesDataContext
    {
        public static void DeleteIncomes(int incomesID)
        {
            IncomeDataClassesDataContext incomeDC =
            new IncomeDataClassesDataContext();
            incomeDC.DeleteIncome(incomesID);
        }

        public static void UpdateIncomes(decimal amountValue, int originIntID,
           int incomesID, DateTime date)
        {
            IncomeDataClassesDataContext incomesDC =
            new IncomeDataClassesDataContext();
            incomesDC.UpdateIncome(incomesID, originIntID,
                                   amountValue, date);
        }

        public static void AddNewIncomes(decimal amount, int originID,
       int userIntID, DateTime date)
        {
            IncomeDataClassesDataContext incomesDC =
            new IncomeDataClassesDataContext();
            incomesDC.AddNewIncome(userIntID, originID, amount, date);
        }
    }
}
